
$(function () {
	if ($('#msg').val()!=''){
		showInfo($('#msg').val());
	}



});



function writevalue(borrowInfo) {
	$('#borrowId').attr('placeholder',borrowInfo.borrowId);
	$('#ISBN').attr('placeholder',borrowInfo.book.isbn);
	$('#bookName').attr('placeholder',borrowInfo.book.bookName);
	$('#bookType').attr('placeholder',borrowInfo.book.bookType.typeName);
	$('#paperNO').attr('placeholder',borrowInfo.reader.paperNO);
	$('#readerName').attr('placeholder',borrowInfo.reader.name);
	$('#readerType').attr('placeholder',borrowInfo.reader.readerType.readerTypeName);
	$('#overday').attr('placeholder',borrowInfo.overday);
	$('#state').attr('placeholder',borrowInfo.state);
}










function showInfo(msg) {
    $("#div_info").text(msg);
    $("#modal_info").modal('show');
}


